package net.minecraft.src;

public class ItemChocoMilk extends ItemBucketMilk {
public ItemChocoMilk(int par1) {
		super(par1);
	}
	public ItemStack onEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
    {
        par3EntityPlayer.heal(3);
        par3EntityPlayer.getFoodStats().addStats(2, 1);
		if (!par3EntityPlayer.capabilities.isCreativeMode)
        {
            --par1ItemStack.stackSize;
        }

        if (!par2World.isRemote)
        {
            par3EntityPlayer.clearActivePotions();
        }

        return par1ItemStack.stackSize <= 0 ? new ItemStack(Item.bucketEmpty) : par1ItemStack;
    }
}
